<template>
	<view class="box">
		<!-- 店铺信息 -->
		<view class="dpInfo contain">
			<view class="left">
				<image src="/static/dp_logo.png" mode="widthFix" style="width: 150rpx;height: 150rpx;"></image>
			</view>
			<view class="right">
				<view class="name">
					商家店铺名称店铺名称
				</view>
				<view class="phone">
					138****0088
				</view>
				<view class="address">
					<span class="dw"></span><span>贵州省贵阳市南明区花果园大街国际金融街5号楼2701</span>
				</view>
			</view>
		</view>
		<!-- 扫码 -->
		<view class="scanCode contain">
			<view class="title">
				扫描用户提货二维码进行核销验证
			</view>
			<view class="scan" @click="scan">
				<image src="/static/McInfo/scan.png" mode="widthFix" style="width: 150rpx;height: 150rpx;"></image>
			</view>
		</view>
		<!-- 输入用户提货数字码进行核销验证 -->
		<view class="iptCode contain">
			<view class="title">
				输入用户提货数字码进行核销验证
			</view>
			<view class="ipt">
				<input class="ct" type="text" placeholder="输入6位数字核销码" />
			</view>
			<view class="btn">
				确认核销
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods:{
			scan() {
				uni.scanCode({
					success: (res) => {
						console.log(res);
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.box{
		background-color: #f5f5f5;
		box-sizing: border-box;
		padding-bottom: 20rpx;
		padding-top: 1rpx;
		min-height: 100vh;
	}
	.contain{
		width: 710rpx;
		box-sizing: border-box;
		padding: 20rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		margin: 20rpx auto;
		background: #FFFFFF;
		border-radius: 10rpx;
	}
	// 商品信息
	.dpInfo {
		display: flex;
		justify-content: space-between;
		align-items: center;
		.left{
			width: 150rpx;
			height: 150rpx;
		}
		.right{
			width: 500rpx;
			height: 150rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			.name,
			.phone,
			.address
			{
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
			}
			.address .dw{
				display: inline-block;
				width: 20rpx;
				height: 20rpx;
				background-image: url('/static/img/dw1.png');
				background-size: cover;
				background-repeat: no-repeat;
			}
		}
	}
	// 扫码
	.scanCode{
		text-align: center;
		.title{
			margin: 40rpx auto;
		}
		.scan{
			width: 150rpx;
			height: 150rpx;
			margin: 40rpx auto;
		}
	}
	.iptCode{
		text-align: center;
		.title{
			margin: 40rpx auto;
		}
		.ipt{
			width: 650rpx;
			height: 100rpx;
			background: #F5F5F5;
			border-radius: 50rpx;
			box-sizing: border-box;
			padding: 35rpx 200rpx;
			margin:20rpx auto;
			.ct{
				width: 250rpx;
				height: 30rpx;
				color: #999999;
			}
		}
		.btn{
			width: 650rpx;
			height: 100rpx;
			background: #6BC665;
			border-radius: 50rpx;
			text-align: center;
			line-height: 100rpx;
			color: #FFFFFF;
			margin:20rpx auto;
		}
	}
	
	
</style>